package com.ht.baselibs.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.ht.baselibs.core.EventCenter;
import com.ht.baselibs.core.EventCode;

import de.greenrobot.event.EventBus;


/**
 * Created by huangtao on 16/3/10.
 */
public class NetReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        EventBus.getDefault().post(new EventCenter(EventCode.EVENT_CODE_NET_STATE_CHANGE));
    }
}